package com.cyj.springioc1.main;

import com.cyj.springioc1.service.IUserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @description:
 * @Author C_Y_J
 * @create 2021-02-26 09:48
 **/
public class UserDemo {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        IUserService userService = (IUserService) applicationContext.getBean("userService");
        userService.save();
    }
}

